/**
 * Copyright &copy; 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.takeaddrecord.entity;

import com.jeeplus.modules.member.entity.Member;
import javax.validation.constraints.NotNull;
import com.jeeplus.modules.takegoods.entity.TakeGoods;

import com.jeeplus.core.persistence.DataEntity;
import com.jeeplus.common.utils.excel.annotation.ExcelField;

/**
 * 库存添加记录Entity
 * @author w
 * @version 2021-11-04
 */
public class TakeAddRecord extends DataEntity<TakeAddRecord> {
	
	private static final long serialVersionUID = 1L;
	private Member member;		// 积分中心用户
	private TakeGoods goods;		// 提货商品
	private Integer num;		// 添加库存数量
	
	public TakeAddRecord() {
		super();
	}

	public TakeAddRecord(String id){
		super(id);
	}

	@NotNull(message="积分中心用户不能为空")
	@ExcelField(title="积分中心用户", fieldType=Member.class, value="member.loginName", align=2, sort=1)
	public Member getMember() {
		return member;
	}

	public void setMember(Member member) {
		this.member = member;
	}
	
	@NotNull(message="提货商品不能为空")
	@ExcelField(title="提货商品", fieldType=TakeGoods.class, value="goods.goodsName", align=2, sort=2)
	public TakeGoods getGoods() {
		return goods;
	}

	public void setGoods(TakeGoods goods) {
		this.goods = goods;
	}
	
	@NotNull(message="添加库存数量不能为空")
	@ExcelField(title="添加库存数量", align=2, sort=3)
	public Integer getNum() {
		return num;
	}

	public void setNum(Integer num) {
		this.num = num;
	}
	
}